package com.ngkj.zmfptback.business.mapper.read;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ngkj.zmfptCommon.common.bean.RentalInfo;
import com.ngkj.zmfptback.business.bean.RentalResponseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ChenHN
 * @since 2021/12/31 creation
 **/
@Mapper
public interface RentalReadMapper extends BaseMapper<RentalResponseEntity> {
    IPage<RentalResponseEntity> getNoProcessedRentalList(@Param("isSp") boolean isSp, Page<RentalResponseEntity> page);

    RentalResponseEntity getRentalInfoByCzfxxlsh(@Param("czfxxlsh") Long czfxxlsh);

    Long getfdIdByCzfxxlsh(@Param("czfxxlsh") Long czfxxlsh);

    List<RentalResponseEntity> getRentalByListId(@Param("list") ArrayList<Long> list);

    List<Long> getAllNoProcessedRentalListId();

}
